<script type="text/JavaScript">

function checkform() {
	d=document.passwordForm;
	if (d.password.value == "") {
		alert("You must enter your current password.");
		return false;
	}
	
	if (d.newpassword1.value == "") {
		alert("You must enter a new password.");
		return false;
	}
	
	if (d.newpassword1.value != d.newpassword2.value) {
		alert("The New Password and Confirm New Password fields must match.");
		return false;
	}
	
	return true;
}

</script>